package com.tiheima.mapper;

import com.tiheima.model.dto.clazz.ClazzPageQuery;
import com.tiheima.model.entity.Clazz;
import com.tiheima.model.vo.clazzListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClazzMapper {
    List<clazzListVO> selectByCondition(ClazzPageQuery clazzPageQuery);

    int insertClazz(Clazz clazz);

    Clazz selectClazzHasEmpById(Integer id);

    int deleteClazz(Integer id);

    @Select("select * from clazz where id=#{id}")
    Clazz selectClazzById(Integer id);

    int updateClazz(Clazz clazz);

    List<Clazz> selectAllClazz();

}
